package com.ruoyi.personnel.changes.event.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.core.domain.BaseEntity;
import io.swagger.annotations.ApiModelProperty;

import javax.validation.constraints.NotNull;
import java.sql.Timestamp;

/**
 * 员工事件记录
 * staff_event_record
 * @author Drj 2021/6/28
 */
public class EventRecord extends BaseEntity {

    /**
     * 自增编号
     */
    private Integer eventRecordId;
    /**
     * 员工编号
     */
    @NotNull(message = "员工编号不能为空")
    @ApiModelProperty(value = "员工编号", required = true)
    private String staffId;
    /**
     * 员工名称
     */
    private String staffName;
    /**
     * 类型
     */
    private String eventRecordType;
    /**
     * 日期
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private java.sql.Timestamp eventRecordDate;
    /**
     * 时长
     */
    private String eventRecordDuration;
    /**
     * 扣款金额
     */
    private Double eventRecordDeduction;
    /**
     * 备注
     */
    private String remark;

    public Integer getEventRecordId() {
        return eventRecordId;
    }

    public void setEventRecordId(Integer eventRecordId) {
        this.eventRecordId = eventRecordId;
    }

    public String getStaffId() {
        return staffId;
    }

    public void setStaffId(String staffId) {
        this.staffId = staffId;
    }

    public String getStaffName() {
        return staffName;
    }

    public void setStaffName(String staffName) {
        this.staffName = staffName;
    }

    public String getEventRecordType() {
        return eventRecordType;
    }

    public void setEventRecordType(String eventRecordType) {
        this.eventRecordType = eventRecordType;
    }

    public Timestamp getEventRecordDate() {
        return eventRecordDate;
    }

    public void setEventRecordDate(Timestamp eventRecordDate) {
        this.eventRecordDate = eventRecordDate;
    }

    public String getEventRecordDuration() {
        return eventRecordDuration;
    }

    public void setEventRecordDuration(String eventRecordDuration) {
        this.eventRecordDuration = eventRecordDuration;
    }

    public Double getEventRecordDeduction() {
        return eventRecordDeduction;
    }

    public void setEventRecordDeduction(Double eventRecordDeduction) {
        this.eventRecordDeduction = eventRecordDeduction;
    }

    @Override
    public String getRemark() {
        return remark;
    }

    @Override
    public void setRemark(String remark) {
        this.remark = remark;
    }
}
